package com.emapp.lccode.utils

import com.emapp.lccode.base.EventBusConfig
import com.emapp.lccode.base.EventBusModel
import org.greenrobot.eventbus.EventBus

/**
 * @Description: TODO
 * @Author: zhang
 * @Date: 2023/6/13
 */
class UpLatThread : Thread() {
    var start = true

    override fun run() {
        while (start) {
            try {
                sleep((60 * 1000L))
            } catch (e: InterruptedException) {
                e.printStackTrace()
            }
            EventBus.getDefault().post(EventBusModel(EventBusConfig.UP_LAT))
        }
    }
}